package com.simple.starter.controller;

import com.simple.starter.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目: starter-use-test
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-05-16 22:50
 **/
@RestController
public class HelloController {

    @Autowired
    HelloService helloService;

    @GetMapping("/hello")
    public String hello() {
        return helloService.sayHello("wcx");
    }
}
